package com.you.weixinpay.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzm
 * @since 2025-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_refund_info")
public class TRefundInfo extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 退款单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商户订单编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 商户退款单编号
     */
    @TableField("refund_no")
    private String refundNo;

    /**
     * 支付系统退款单号
     */
    @TableField("refund_id")
    private String refundId;

    /**
     * 原订单金额(元)
     */
    @TableField("total_fee")
    private BigDecimal totalFee;

    /**
     * 退款金额(元)
     */
    @TableField("refund")
    private BigDecimal refund;

    /**
     * 退款原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 退款状态
     */
    @TableField("refund_status")
    private String refundStatus;


    /**
     * 退款结果通知参数
     */
    @TableField("content_notify")
    private String contentNotify;


}
